﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QAxObject>
#include <QVector>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>


QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
public:
    enum Language_def{ _CHINESE, _ENGLISH };
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void start_translate();
    void get_file_path();
    void translate_Chinese();
    void translate_English();
    QVector<QString>num;
    QVector<QString>hz;
    QVector<QString>en;
    QVector<QString>wc;
    enum Language_def Language = _CHINESE;
private slots:
    void on_lEd_input_textChanged(const QString &arg1);
    bool copyFile(QString srcPath, QString dstPath, bool coverFileIfExist);
private:
    Ui::Widget *ui;
    QSqlDatabase db;
    QSqlQuery*query;
};
#endif // WIDGET_H
